<?php

    $hak_akses = array(
        1 => 'Tata Usaha', 
        2 => 'Kepala Balai',
        3 => 'Unit Kerja'
    );

?>

<div align="center" id="form">
    <h1>Registrasi User</h1>
    
    <?php echo form_open('Site/validasi_registrasi_pegawai'); ?>
    <table border="0">
        <tr>
            <td>No Induk</td>
            <td>:</td>
            <td><?php echo form_input('i_id_pegawai').form_error('i_id_pegawai'); ?></td>
            </tr>
        <tr>
            <td>Nama Lengkap</td>
            <td>:</td>
            <td><?php echo form_input('i_nama_pegawai').form_error('i_nama_pegawai'); ?></td>
        </tr>
        <tr>
            <td>Password</td>
            <td>:</td>
            <td><?php echo form_input('i_password').form_error('i_password'); ?></td>
        </tr>
        <tr>
            <td>Jabatan</td>
            <td>:</td>
            <td><?php echo form_dropdown('i_hak_akses', $hak_akses); ?></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td><?php echo form_submit('i_simpan', 'Simpan'); ?></td>
        </tr>
    </table>
<?php echo form_close(); ?>
    
</div>